package com.flaremars.picker.widget;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;

//修复ViewPager 与 百度地图滑动响应冲突问题
public class ViewPagerCompat extends ViewPager {
  
        public ViewPagerCompat(Context context) {
            super(context);    
        }    
        
        public ViewPagerCompat(Context context, AttributeSet attrs) {
            super(context, attrs);    
        }    
          
          
        @Override    
        protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {
            return v.getClass().getName().equals("com.baidu.mapapi.map.MapView") || super.canScroll(v, checkV, dx, x, y);
        }
}  